﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TranslationClient {
	public partial class WynikTlumaczenia : Form {
		public WynikTlumaczenia(string oryginal, string tlumaczenie) {
			InitializeComponent();

			string org2 = oryginal.Replace("//", Environment.NewLine);
			string[] lines = org2.Split('~');
			for (int i = 0; i < lines.Length; ++i)
				lines[i] = lines[i].Trim();
			textBoxOryginal.Lines = lines;

			string tlu2 = tlumaczenie.Replace("//", Environment.NewLine);
			lines = tlu2.Split('~');
			for (int i = 0; i < lines.Length; ++i)
				lines[i] = lines[i].Trim();
			textBoxTlumaczenie.Lines = lines;

		}
	}
}
